<!DOCTYPE html>
<html>

<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta charset="UTF-8">
  <title>异常发布</title>
  <!-- <link rel="stylesheet" type="text/css" href="http://crm.hbcczp.com/Public/libs/vue/vux.min.css"> -->
  <link rel="stylesheet" type="text/css" href="__STATIC__/vux/vux.min.css.php">
  <style>
    .weui-cells:after {
      border-bottom: none;
    }
  </style>
</head>

<body>
  <div id="app" style="height: 100%">
    <view-box>
      <router-view></router-view>
      <tabbar slot="bottom">
        <tabbar-item link="/" selected>
          <span slot="label">异常公告</span>
        </tabbar-item>
        <tabbar-item link="admin">
          <span slot="label">审核/发布</span>
        </tabbar-item>
<!--         <tabbar-item link="submit">
          <span slot="label">异常提交</span>
        </tabbar-item> -->
      </tabbar>
    </view-box>
  </div>
</body>

<script src="http://cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js"></script>
<script src="http://cdn.bootcss.com/vue/2.2.6/vue.min.js"></script>
<script src="http://cdn.bootcss.com/vue-router/2.2.1/vue-router.min.js"></script>
<script src="http://cdn.bootcss.com/axios/0.15.3/axios.min.js"></script>
<script src="http://crm.hbcczp.com/Public/libs/vue/vux.min.js.php"></script>
<!-- <script src="__STATIC__/vux/vux.min.js.php"></script> -->

<include file="_exception/home.html" />
<include file="_exception/admin.html" />
<include file="_exception/submit.html" />
<script>
  FastClick.attach(document.body)
  Vue.use(VueRouter)
  Vue.use(vuxLoadingPlugin)
  Vue.use(vuxAlertPlugin)

  var routes = [{
    path: '/',
    component: home
  }, {
    path: '/admin',
    component: admin
  }, {
    path: '/submit',
    component: submit
  }]

  var router = new VueRouter({
    routes
  })

  new Vue({
    el: '#app',
    router,
    components: {
      viewBox:    vuxViewBox,
      tabbar:     vuxTabbar,
      tabbarItem: vuxTabbarItem,
    },
    data: {
      userInfo: {$user_info},
    },
  })
</script>

</html>
